home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Can't externalize an FW_C.2 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Can't externalize an FW_CArcShape
  2. Sent:        5/29/96 10:45 AM
  3. Received:    5/29/96 11:41 AM
  4. From:        Arni McKinley, motion@nbn.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. I noticed this is happening to FW_CBitmapShape as well.
  9.  
  10. Arni
  11.  
  12.  
  13. >I am trying to externalize an FW_CArcShape object, and I'm not having
  14. >much luck.
  15. >When I attempt an FW_WRITE_DYNAMIC_OBJECT, I get the following
  16. >errors:
  17. >
  18. >FWArDyna.cpp @286: GetNameToLabelMap().Find(tempName)
  19. >FWArDyna.cpp @290: item
  20. >FWArDyna.cpp @500: ("No registered archiving functions for class
  21. >label", pair != NULL)
  22. >FW_CFixedAllocator: An object of
  23. >type
  24. >FW_CPriv{BW|Color}PatternRep
  25. >has
  26. >not
  27. >been
  28. >deleted
  29. >properly.
  30. >FW_CFixedAllocator:
  31. >An
  32. >object
  33. >of
  34. >type
  35. >FW_CPrivFontRep
  36. >has
  37. >not
  38. >been
  39. >deleted
  40. >properly.
  41. >FW_CFixedAllocator:
  42. >An
  43. >object
  44. >of
  45. >type
  46. >FW_CPrivStyleRep
  47. >has
  48. >not
  49. >been
  50. >deleted
  51. >properly.
  52. >FW_CFixedAllocator:
  53. >An
  54. >object
  55. >of
  56. >type
  57. >FW_CPrivInkRep
  58. >has
  59. >not
  60. >been
  61. >deleted
  62. >properly.
  63. >
  64. >The
  65. >method
  66. >the
  67. >causes
  68. >the
  69. >problem
  70. >is
  71. >listed
  72. >below:
  73. >
  74. >//-------------------------------------------------------------------------
  75. >---------------
  76. >//
  77. >CPieContent::ExternalizePartKind
  78. >//-------------------------------------------------------------------------
  79. >---------------
  80. >
  81. >void CPieContent::ExternalizePartKind(Environment* ev, ODStorageUnit*
  82. >storageUnit)
  83. >{
  84. >        // Write the two text data strings to storage
  85. >        FW_PStorageUnitSink suSink(ev, storageUnit, kODPropContents,
  86. >fPiePart->GetPartKind(ev));
  87. >        FW_CWritableStream archive(suSink);
  88. >        unsigned long stringCount = 1;
  89. >        unsigned long arcCount = 0;
  90. >
  91. >        archive << stringCount;
  92. >        archive << fCentered;
  93. >        archive << fTextData;
  94. >
  95. >        arcCount = fArcCollection.Count();
  96. >        archive <<
  97. >arcCount;
  98. >
  99. >        FW_TOrderedCollectionIterator<FW_CArcShape>
  100. >arcIter(&fArcCollection);
  101. >        FW_CArcShape
  102. >*arc;
  103. >        for(arc = arcIter.First(); arcIter.IsNotComplete(); arc =
  104. >arcIter.Next())
  105. >        {
  106. >                FW_WRITE_DYNAMIC_OBJECT(archive,arc,FW_CArcShape); // Causes
  107. >errors!!!
  108. >        }
  109. >}
  110. >
  111. >
  112. >What am I doing wrong?
  113. >
  114. >Walter
  115.  
  116.